export function toast(content, icon = 'none', duration = 1500) {
	uni.showToast({
		title: content,
		icon,
		duration,
	});
}

export function modal(content, callBack = false, confirmText = '确定', cancelText = '取消') {
	uni.showModal({
		title: '提示',
		content,
		confirmText,
		cancelText,
		showCancel: Boolean(callBack),
		success: (res) => {
			res.confirm && callBack && callBack();
		},
	});
}
